package git.soulbgm.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogUtil {
    private Logger log;

    public LogUtil(Class clazz) {
        log = LoggerFactory.getLogger(clazz);
    }

    public void debug(String format, Object... arguments) {
        log.debug(format, arguments);
    }

    public void debug(String format, Exception e) {
        log.debug(format, e);
    }

    public void info(String format, Object... arguments) {
        log.info(format, arguments);
    }

    public void info(String format, Exception e) {
        log.info(format, e);
    }

    public void warn(String format, Object... arguments) {
        log.warn(format, arguments);
    }

    public void warn(String format, Exception e) {
        log.warn(format, e);
    }

    public void error(String format, Object... arguments) {
        log.error(format, arguments);
    }

    public void error(String format, Exception e) {
        log.error(format, e);
    }

}

